package com.unknowpupil.design.strategy;

/**
 * @Description: <p>
 *
 * </p>
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/28 15:21
 * @Classname: Client
 * @Version: 1.0
 */
public class Client {
    public static void main(String[] args) {
        Strategy s1 = new NewCustomerFewStrategy();
        Context ctx = new Context(s1);
        Strategy s2 = new NewCustomerManyStrategy();
        Context ctx2 = new Context(s2);
        ctx.printPrice(998d);
        ctx2.printPrice(998d);

    }
}
